package com.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.entity.dto.CoursesRelationDto;
import com.entity.pojo.Courses;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.entity.vo.CourseVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author chenmo
 * @since 2022-04-02
 */
@Mapper
@Repository
public interface CoursesMapper extends BaseMapper<Courses> {

    List<Courses> getCoursesByCondition(Page<CourseVo> pageCondition, @Param("ew") QueryWrapper<CourseVo> wrapper);

    List<CoursesRelationDto> getAllCourseRelation();
}
